<style>
.unit label{
	width:125px;
}
</style>
<div class="pageContent">
	<form method="post" action="__URL__/add/insert/true/navTabId/__MODULE__/callbackType/closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
	    <input type="hidden" name="userid" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>  
	    <input type="hidden" name="businessdate" value="<?php echo date('YmdHis')?>">       
	    <div class="pageFormContent" layoutH="180">
			<div class="unit">
				<label>公司名称：</label>
				<input name="companyname" type="text" class="required" alt="请输入公司名称" style="width: 361px;"/>
			</div>
			<div class="unit">
				<label>地址：</label>
				<input type="text" name="address" style="width: 361px;"/>
			</div>
			<div class="unit">
				<label>联系人：</label>
				<input name="linkname" class="required" type="text" alt="请输入联系人名字"/>
			</div>
			<div class="unit">
				<label>电话：</label>
				<input type="text" name="phone" class="phone"/>		
			</div>
			 
			
			
			<!-- <div class="unit">
				<label>购买产品名称：</label>
				<input name="productname" type="text"/>
			</div>
			<div class="unit">
				<label>产品单价/吨：</label>
				<input name="unit" type="text"/>
			</div>
			<div class="unit">
				<label>购买数量：</label>
				<input type="text" name="quantity" class="digits"/>
			</div> -->
			<div class="unit">
				<label>供货周期：</label>
				<input type="text" name="leadtime"/>
			</div>
			<div class="unit">
				<label style="margin-right: -10px;">业务类型：</label>
				<select  name="type" id="type" class="combox">
					<option value="购进合同" selected>购进业务</option>
					<option value="销售合同" >销售业务</option>
				</select>
			</div>
			<!-- <div class="unit">
				<label>查看人姓名：</label>
				<input type="text" name="viewnames"/>
			</div> -->		
			<div class="unit">
				<label>备注：</label>
				<textarea name="note" cols="56" style="width: 361px;" rows="3"></textarea>
			</div>
		</div>
		
		<div  width="100%" layoutH="230" >
		<div id = 'div4'>
		<table class="list nowrap itemDetail" addButton="新增商品" width="100%">
						<thead>
							<tr>
							 <th type="lookup" name="items.org.goodname[#index#]" lookupGroup="items.org"   suggestFields="goodid,goodname"   lookupUrl="__URL__/add/getgoods/true" lookupPk="goodid"  size="12"   >商品名称</th>
			                 <th type="text" name="items.itemQuality[#index#]" size="12" fieldClass="number" >购买数量</th>
			                 <th type="text" name="items.itemPrice[#index#]" size="12" fieldClass="number"  >产品单价/吨</th>
			                 <th type="text" name="items.itemTotalprice[#index#]" size="12" fieldClass="number"  >金额</th>
		                     <th type="del" width="60">操作</th>
		                    </tr>
						</thead>
						<tbody></tbody>
			</table>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<!--<eq name="flag" value="isbusiness"> onclick="javascript:alert('保存以后将不能再修改，只能报废')"</eq>-->
				<li><div class="buttonActive"><div class="buttonContent"><button   type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
